import React from 'react';
import Login from './user/login';
import Homex from './home/index';
import '@/style/index.scss'
import { HashRouter, Route, Redirect, Switch } from 'react-router-dom'
export default class Home extends React.Component{
    render(){
        return(
            <HashRouter>
                <video autoPlay="preload" loop="loop" muted >
                    <source src={require('@/assets/movie/梦幻数学老师.mp4')} type="video/mp4" />
                </video>
				<Switch>
					<Route path="/login" component={Login}/>
					<Route path="/home" component={Homex}/>
					<Route component={Login}/>
				</Switch>
            </HashRouter>
        );
    }
}
